package cn.silver.module.authority.bean;

import cn.silver.framework.mybatis.bean.BaseBean;
import cn.silver.module.authority.domain.SysRoleMenu;
import cn.silver.module.system.bean.MenuBean;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 角色信息视图对象 sys_role
 *
 * @author Silver Zhou
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysRoleMenu.class)
@Schema(name = "RoleMenuBean", title = "角色访问权限对象")
public class RoleMenuBean extends BaseBean implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(title = "角色ID")
    private String roleId;
    @Schema(title = "菜单id")
    private String menuId;
    @Schema(title = "菜单id")
    private List<String> menuIds;
    @Schema(title = "菜单组")
    private List<MenuBean> menus;
}
